﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DotNetStar.TheKing.Services
{
    public static class ContentQueryExtension
    {
        /// <summary>
        /// 只获取帖子频道的查询。
        /// </summary>
        /// <param name="contentQuery"></param>
        /// <returns></returns>
        public static IContentQuery OnlyContentChannel(this ContentQuery contentQuery)
        {
            contentQuery.Channel = Infrastructure.Channels.Content;
            return contentQuery;
        }
    }
}
